XTQ: A Declarative Functional XML Query Language

نویسندگان

  • Xuhui Li
  • Mengchi Liu
  • Shanfeng Zhu
  • Arif Ghafoor
چکیده

Various query languages have been proposed to extract and restructure infor-mation in XML documents. These languages, usually claiming to be declar-ative, mainly consider the conjunctive relationships among data elements.In order to present the operations where the hierarchical and the disjunc-tive relationships need to be considered, such as restructuring hierarchy andhandling heterogeneity, the programs in these languages often exhibit a pro-cedural style and thus the declarativeness in them is not so prominent as inconventional query languages like SQL.In this paper, we propose a declarative pattern-based functional XMLquery language named XML Tree Query (XTQ). XTQ adopts expressivecomposite patterns to present data extraction, meanwhile establishing theconjunctive, the disjunctive and the hierarchical relationships among dataelements. It uses the matching terms, a composite structure of the variablesbound to the matched data elements, to present a global sketch of the exThis research is partially supported by National Science Foundation of China andOpen Foundation of State Key Lab of Software Engineering.The authors wish to thank the anonymous referees for their valuable comments andsuggestions, which greatly improved the technical content and the presentation of thepaper. Also thanks to Tieyun Qian and Ming Zhong for their valuable advice and effortsin revising the submission.Corresponding AuthorEmail addresses: [email protected] (Xuhui Li), [email protected](Mengchi Liu), [email protected] (Shanfeng Zhu), [email protected] (ArifGhafoor) Preprint submitted to arXiv.orgJune 6, 2014 tracted data, and develops a deductive restructuring mechanism of matchingterms to indicate data transformation, especially for restructuring hierar-chy and handling heterogeneity. Based on matching terms, XTQ employsa coherent approach to function declaration and invocation to consistentlyextract and construct composite data structure, which integrates features ofconventional functional languages and pattern-based query languages. Addi-tionally, XTQ also supports data filtering on composite data structure suchas hierarchical data, which is seldom deliberately considered in other studies.We demonstrate with various examples that XTQ can declaratively presentcomplex XML queries which are common in practice.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Towards a Declarative Query and Transformation Language for XML and Semistructured Data: Simulation Uni

The growing importance of XML as a data interchange standard demands languages for data querying and transformation. Since the mid 90es, several such languages have been proposed that are inspired from functional languages (such as XSLT [1]) and/or database query languages (such as XQuery [2]). This paper addresses applying logic programming concepts and techniques to designing a declarative, r...

متن کامل

Towards a Declarative Query and Transformation Language for XML and Semistructured Data: Simulation Unification

The growing importance of XML as a data interchange standard demands languages for data querying and transformation. Since the mid 90es, several such languages have been proposed that are inspired from functional languages (such as XSLT [1]) and/or database query languages (such as XQuery [2]). This paper addresses applying logic programming concepts and techniques to designing a declarative, r...

متن کامل

YATL: a Functional and Declarative Language for XML

This paper describes YAT L , a language to query, convert and integrate XML data. YAT L comes from the database community: it is not Turing complete, but it captures a large class of useful data transformations, it is declarative and subject to optimization. The rst version of YAT L was based on logic programming and datalog. This paper presents the new version of YAT L which beneets from funct...

متن کامل

A Query Language for XML

An important application of XML is the interchange of electronic data (EDI) between multiple data sources on the Web. As XML data proliferates on the Web, applications will need to integrate and aggregate data from multiple source and clean and transform data to facilitate exchange. Data extraction, conversion, transformation, and integration are all well-understood database problems, and their...

متن کامل

Query Decomposition Using the XML Declarative Description Language

Query decomposition is one of the most important phases of query processing in an integrated database system. A global query is decomposed into several sub-queries conforming to local formats, which can be used to extract data from distributed databases. In this paper a new query decomposition methodology for integrated XML databases is introduced. A special construction of mappings is also int...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1406.1224  شماره 

صفحات  -

تاریخ انتشار 2014